package com.whc.gulimall.ware.vo;

import com.whc.common.valid.AddGroup;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author angaoen
 */
@Data
public class PurchaseDoneVo {

    /**
     * 采购单id
     */
    @NotNull
    private Long id;

    /**
     * 采购项
     */
    @NotEmpty(message = "items不得为空", groups = {AddGroup.class})
    private List<PurchaseItemDoneVo> items;
}
